﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace FrostGraphics.Umbraco.ContactForm {
  public class ContactFormElement : ConfigurationElement {

    [ConfigurationProperty("name", IsKey = true, IsRequired = true)]
    public string Name {
      get { return (string)this["name"]; }
      set { this["name"] = value; }
    }

    [ConfigurationProperty("", IsDefaultCollection = true)]
    public ContactFormFieldCollection FormFields {
      get {
        return (ContactFormFieldCollection)this[""];
      }
    }

  }
}